import tempPage from "./components/Temp";
import SignIn from "./components/PersonCenter/SignIn";
import SignUp from "./components/PersonCenter/SignUp";
import PersonalCenter from "./components/PersonCenter/PersonalCenter";
import Setting from "./components/PersonCenter/Setting";
import Order from "./components/PersonCenter/Order";
import MyStars from "./components/PersonCenter/MyStars";
import PersonalCenterMainPage from "./components/PersonCenter/PersonalCenterMainPage";
import ProductCenter from "./components/ProductManage/ProductCenter";
import ProductAdd from "./components/ProductManage/ProductAdd";
import ProductBrief from "./components/ProductManage/ProductBrief";
import ProductShow from "./components/ProductManage/ProductShow";
import ProductCart from "./components/ProductManage/ProductCart";
import BigSaleAdd from "./components/BigSaleManage/BigSaleAdd";
import BigSaleBrief from "./components/BigSaleManage/BigSaleBrief";
import BigSaleShow from "./components/BigSaleManage/BigSaleShow";
import BigSaleCenter from "./components/BigSaleManage/BigSaleCenter";
import MySale from "./components/PersonCenter/MySale";
import AuctionCenter from "./components/AuctionManage/AuctionCenter";
import AuctionAdd from "./components/AuctionManage/AuctionAdd";
import AuctionShow from "./components/AuctionManage/AuctionShow";
import AuctionBrief from "./components/AuctionManage/AuctionBrief";
import AuctionAppointment from "./components/AuctionManage/AuctionAppointment";
import MessageCenter from "./components/Message/MessageCenter";
import MessageShow from "./components/Message/MessageShow";
import MyProduct from "@/components/PersonCenter/MyProduct";
import MyAuction from "@/components/PersonCenter/MyAuction";

export default {
    routes: [
        {path: '/SignIn', name: 'SignIn', component: SignIn},
        {path: '/SignUp', name: 'SignUp', component: SignUp,meta:{title: "注册海淘"}},
        // {path: '/', component: ProductCenter, children: [{path: '/', component: ProductShow}]},
        {path: '/', component: SignIn,meta:{title:"登陆海淘"}},
        {
            path: '/T', component: tempPage, children: [
                {
                    path: '/PersonalCenter', component: PersonalCenter, meta: {title: "个人中心"}, children: [
                        {path: '/', component: PersonalCenterMainPage},
                        {path: '/Setting', component: Setting},
                        {path: '/Order', component: Order},
                        {path: '/MyStars', component: MyStars},
                        {path: '/PersonalCenterMainPage', component: PersonalCenterMainPage},
                        {path: '/MySale', component: MySale},
                        {path: '/MyProduct', component: MyProduct},
                        {path: '/MyAuction',component: MyAuction}
                    ]
                },
                {path: '/ProductCenter', component: ProductCenter, meta: {title: "海淘商品"}},
                {
                    path: '/', component: ProductCenter, children: [
                        {path: '/', component: ProductShow},
                        {path: '/ProductAdd', component: ProductAdd},
                        {path: '/ProductBrief', name: 'ProductBrief', component: ProductBrief},
                        {path: '/ProductShow', component: ProductShow},
                        {path: '/ProductCart', component: ProductCart},
                    ]
                },
                {
                    path: '/BigSaleCenter', component: BigSaleCenter, meta: {title: "海淘甩卖"}, children: [
                        {path: '/', component: BigSaleShow},
                        {path: '/BigSaleShow', component: BigSaleShow},
                        {path: '/BigSaleBrief', component: BigSaleBrief},
                        {path: '/BigSaleAdd', component: BigSaleAdd}
                    ]
                },
                {
                    path: '/AuctionCenter', component: AuctionCenter, meta: {title: "海淘拍卖"}, children: [
                        {path: '/', component: AuctionShow},
                        {path: '/AuctionAdd', component: AuctionAdd},
                        {path: '/AuctionShow', component: AuctionShow},
                        {path: '/AuctionBrief', name: "AuctionBrief", component: AuctionBrief},
                        {path: '/AuctionAppointment', component: AuctionAppointment}
                    ]
                },
                {
                    path: '/MessageCenter', component: MessageCenter, meta: {title: "消息"}, children: [
                        {path: '/', component: MessageCenter},
                        {path: '/MessageShow/:id', name: "MessageShow", component: MessageShow}
                    ]
                }
            ]
        },
    ]
}